package com.acegear.horizon.domain.services;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by wangsike on 2017/3/10.
 */
@Service
public class ShareService {
    @Value("${horizon.share}")
    private String shareServer;

    public String clubShare(Long clubId) {
        return shareServer + "/clubs/" + clubId;
    }

    public String eventShare(Long eventId) {
        return shareServer + "/events/" + eventId;
    }

    public String postShare(Long postId) {
        return shareServer + "/posts/" + postId;
    }
}
